package org.xp.judgeplatform.pojo.vo.LoginDevicesVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 登录设备VO
 */
@Data
@Schema(description = "登录设备信息")
public class LoginDevicesVO {

    @Schema(description = "设备记录ID", example = "1")
    private Long id;

    @Schema(description = "设备名称", example = "Windows Edge (本机)")
    private String deviceName;

    @Schema(description = "设备类型", example = "PC")
    private String deviceType;

    @Schema(description = "浏览器信息", example = "Edge 120.0.0.0")
    private String browser;

    @Schema(description = "操作系统", example = "Windows 11")
    private String os;

    @Schema(description = "登录方式", example = "网页登录")
    private String loginMethod;

    @Schema(description = "IP地址", example = "192.168.1.***")
    private String ipAddress;

    @Schema(description = "登录地点", example = "福建省 泉州市")
    private String location;

    @Schema(description = "是否当前设备", example = "true")
    private Boolean isCurrent;

    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;
}
